﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLab.UX.Forms
{
    public partial class TextBoxForm : Form
    {
        public string NewText { get; set; }

        public TextBoxForm(string caption, string text)
        {
            InitializeComponent();
            this.Text = caption;
            this.textBoxName.Text = text;
            this.NewText = text;
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.NewText = textBoxName.Text.Trim();
            this.DialogResult = DialogResult.OK;
        }
    }
}
